package com.yanqu.road.entity.enums.activity;

/**
 * 可以元宝触发的现金礼包
 * @Author wpj
 * @Date 2020/8/27
 */
public enum eActivityRechargeType {

    RechargeBuildingUpgrade("现金礼包，解锁升级店铺",201),
    RechargePatronsBreak("现金礼包，门客突破",203),
    RechargeChildTrain("现金礼包，子嗣培养",204),
    RechargeTravel("现金礼包，游历",205),
    RechargeBeautyCount("现金礼包，拥有美女数量",210),
    RechargeLotteryTimes("现金礼包，幸运夺宝次数",215),
    RechargeManor("庄园现金礼包",228),
    RechargeZsOpen("招商承包现金礼包",229),
    RechargeInn("客栈现金礼包",230),
    RechargeWineShopReceptionCount("现金礼包，酒肆接待人数",226),
    RechargeTitle("身份现金礼包",239),
    RechargeGrandChild("山庄孙子现金礼包",242),
    RechargeDrugStore("现金礼包，药铺",255),
    RechargeWineryMake("现金礼包，酿酒材料不足",262),
    RechargeNewPlayerVehiclePackage("现金礼包：新手珍兽福袋",263),
    RechargeClinicCureCount("现金礼包，医馆治疗人数",216),
    RechargeBankSkin("钱庄皮肤现金礼包",273),
    RechargeCricketTrain("现金礼包，蛐蛐培养",293),
    RechargeVehicleSoulBlock("魂石触发礼包",309),
    RechargeBuildingUpgradeNew("现金礼包，解锁升级店铺(新)",275),

    ;

    private String desc;

    private int childType;

    eActivityRechargeType(String desc, int childType) {
        this.desc = desc;
        this.childType = childType;
    }

    public String getDesc() {
        return desc;
    }

    public int getChildType() {
        return childType;
    }

    public static boolean has(int conditionType){
        for(eActivityRechargeType type  : values()){
            if(type.getChildType() == conditionType){
                return true;
            }
        }
        return false;
    }
}
